/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gui;

import javax.swing.JButton;
import javax.swing.plaf.DimensionUIResource;

/**
 *
 * @author FALL
 */
public class PanAjoutUtilisateur extends javax.swing.JPanel {

    /**
     * Creates new form PanAjoutUtilisateur
     */
    public PanAjoutUtilisateur() {
      //  initComponents();
        setMaximumSize(new java.awt.Dimension(1050, 375));
	    setMinimumSize(new java.awt.Dimension(1050, 375));
		setPreferredSize(new java.awt.Dimension(1056, 410));

    }
    public PanAjoutUtilisateur(JButton boutonAnnuler){
    	
    	initComponents(boutonAnnuler);
    	
    	
    	
    	
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents(JButton buttonAnnuler) {

        labelNom = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        labelLogin = new javax.swing.JLabel();
        labelPassword = new javax.swing.JLabel();
        labelEmail = new javax.swing.JLabel();
        textFieldNom = new javax.swing.JTextField(35);
        textFieldPrenom = new javax.swing.JTextField(35);
        textFieldLogin = new javax.swing.JTextField(35);
        textFieldPassword = new javax.swing.JTextField(35);
        textFieldEmail = new javax.swing.JTextField(35);
        labelPhone = new javax.swing.JLabel();
        labelAreaAdresse = new javax.swing.JLabel();
        comboProfil = new javax.swing.JComboBox();
        labelProfil = new javax.swing.JLabel();
        textFieldPhone = new javax.swing.JTextField(35);
        jScrollPane1 = new javax.swing.JScrollPane();
        textAreaAdresse = new javax.swing.JTextArea();
        labelPhoto = new javax.swing.JLabel();
        boutonValider = new javax.swing.JButton();
        boutonAnnuler = new javax.swing.JButton();
     
        setBackground(new java.awt.Color(128, 130, 133));

        labelNom.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelNom.setForeground(new java.awt.Color(255, 255, 255));
        labelNom.setText("Nom:");

        jLabel1.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Prénom:");

        labelLogin.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelLogin.setForeground(new java.awt.Color(255, 255, 255));
        labelLogin.setText("Login");

        labelPassword.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelPassword.setForeground(new java.awt.Color(255, 255, 255));
        labelPassword.setText("Password:");

        labelEmail.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelEmail.setForeground(new java.awt.Color(255, 255, 255));
        labelEmail.setText("Email:");

        textFieldLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textFieldLoginActionPerformed(evt);
            }
        });

        labelPhone.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelPhone.setForeground(new java.awt.Color(255, 255, 255));
        labelPhone.setText("Phone:");

        labelAreaAdresse.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelAreaAdresse.setForeground(new java.awt.Color(255, 255, 255));
        labelAreaAdresse.setText("Adresse:");

        comboProfil.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        comboProfil.addItem("Administrateur");
        comboProfil.addItem("Agent Commercial");
        comboProfil.addItem("Comptable");
        comboProfil.addItem("Consultant");
      
        labelProfil.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        labelProfil.setForeground(new java.awt.Color(255, 255, 255));
        labelProfil.setText("Profil:");

        textAreaAdresse.setColumns(15);
        textAreaAdresse.setRows(5);
        jScrollPane1.setViewportView(textAreaAdresse);

        labelPhoto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/photos/profil.gif"))); // NOI18N

        boutonValider.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonValider.setText("Valider");

        boutonAnnuler.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonAnnuler.setText("Annuler");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelNom)
                    .addComponent(jLabel1)
                    .addComponent(labelLogin)
                    .addComponent(labelPassword)
                    .addComponent(labelEmail))
                .addGap(36, 36, 36)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(textFieldNom)
                    .addComponent(textFieldPrenom)
                    .addComponent(textFieldLogin)
                    .addComponent(textFieldPassword)
                    .addComponent(textFieldEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))
                .addGap(161, 161, 161)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelProfil)
                    .addComponent(labelPhone)
                    .addComponent(labelAreaAdresse))
                .addGap(73, 73, 73)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboProfil, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(76, 76, 76)
                        .addComponent(labelPhoto))
                    .addComponent(textFieldPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(57, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(260, 260, 260)
                .addComponent(boutonValider, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(buttonAnnuler, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(122, 122, 122))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNom)
                    .addComponent(textFieldNom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelPhone)
                    .addComponent(textFieldPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(textFieldPrenom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelAreaAdresse))
                        .addGap(35, 35, 35)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelLogin)
                            .addComponent(textFieldLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(34, 34, 34)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFieldPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelPassword))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFieldEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelEmail)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(51, 51, 51)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboProfil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelProfil)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(labelPhoto)))
                .addGap(33, 33, 33)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boutonValider)
                    .addComponent(buttonAnnuler))
                .addContainerGap(34, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void textFieldLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textFieldLoginActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textFieldLoginActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boutonAnnuler;
    private javax.swing.JButton boutonValider;
    private javax.swing.JComboBox comboProfil;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel labelAreaAdresse;
    private javax.swing.JLabel labelEmail;
    private javax.swing.JLabel labelLogin;
    private javax.swing.JLabel labelNom;
    private javax.swing.JLabel labelPassword;
    private javax.swing.JLabel labelPhone;
    private javax.swing.JLabel labelPhoto;
    private javax.swing.JLabel labelProfil;
    private javax.swing.JTextArea textAreaAdresse;
    private javax.swing.JTextField textFieldEmail;
    private javax.swing.JTextField textFieldLogin;
    private javax.swing.JTextField textFieldNom;
    private javax.swing.JTextField textFieldPassword;
    private javax.swing.JTextField textFieldPhone;
    private javax.swing.JTextField textFieldPrenom;
    // End of variables declaration//GEN-END:variables
}
